import request from '@/utils/request'

// 查询招领记录列表
export function listRecruitment(query) {
  return request({
    url: '/found/recruitment/list',
    method: 'get',
    params: query
  })
}

// 查询招领记录详细
export function getRecruitment(foundId) {
  return request({
    url: '/found/recruitment/' + foundId,
    method: 'get'
  })
}

// 新增招领记录
export function addRecruitment(data) {
  return request({
    url: '/found/recruitment',
    method: 'post',
    data: data
  })
}

// 修改招领记录
export function updateRecruitment(data) {
  return request({
    url: '/found/recruitment',
    method: 'put',
    data: data
  })
}

// 删除招领记录
export function delRecruitment(foundId) {
  return request({
    url: '/found/recruitment/' + foundId,
    method: 'delete'
  })
}
